package com.example.hxds.dr.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @ClassName: UpdateDriverRealAuthForm
 * @Description: 更新司机实名认证状态表单
 * @Author: 丛雨
 * @Date: 2024/1/23 11:18
 */
@Data
@Schema(description = "更新司机实名认证状态表单")
public class UpdateDriverRealAuthForm {
    @NotNull(message = "realAuth不能为空")
    @Range(min = 1, max = 3, message = "realAuth范围不正确")
    @Schema(description = "是否已经实名认证")
    private Byte realAuth;

    @NotNull(message = "driverId不能为空")
    @Min(value = 1, message = "driverId不能小于1")
    @Schema(description = "司机Id")
    private Long driverId;
}
